# main.py（入口文件）
from student import Student
from teacher import Teacher
from course import Course
from class_list import ClassList

if __name__ == "__main__":
    # 测试 Student
    tom = Student("tom", 20, '男', 1)
    jerry = Student("jerry", 21, '男', 2)
    rose = Student("rose", 21, '女', 3)
    marry = Student("marry", 20, '女', 4)
    # marry.show_info()

    # # 测试 Teacher
    hong = Teacher("hong", 54, '女', 1, True, ['计算机1班'])
    ming = Teacher("ming", 48, '男', 2, True, ['软件1班'])
    li = Teacher('li', 36, '男', 3, False, ['计算机1班', '软件1班'])
    # li.show_info()

    # 测试 ClassList
    cs1 = ClassList("计算机1班", 1, hong, [tom, jerry])
    se1 = ClassList("软件1班", 2, ming, [rose, marry])
    # cs1.add_student(jerry)
    # cs1.remove_student(jerry)
    # cs1.show_info()


    # 测试 Course
    python = Course('python', 1, li, [tom, rose], '必修', 6)
    java = Course('java', 2, li, [jerry, rose], '必修', 6)
    # python.show_info()
    # python.course_selection(marry)
    # python.course_withdrawal(marry)
    # Course.show_all_courses()